package com.isunland.managesystem.entity;

import java.util.HashMap;
import java.util.Map;

public class FormDetail {

  private String name;
  private String value;
  private String isNeccessary;
  private String isHidden;

  public String getIsHidden() {
    return isHidden;
  }

  public void setIsHidden(String isHidden) {
    this.isHidden = isHidden;
  }

  public String getIsNeccessary() {
    return isNeccessary;
  }

  public void setIsNeccessary(String isNeccessary) {
    this.isNeccessary = isNeccessary;
  }

  private Map<String, Object> additionalProperties = new HashMap<String, Object>();

  public FormDetail(String name, String value) {
    super();
    this.name = name;
    this.value = value;
  }

  /**
   * @return The name
   */
  public String getName() {
    return name;
  }

  /**
   * @param name The name
   */
  public void setName(String name) {
    this.name = name;
  }

  /**
   * @return The value
   */
  public String getValue() {
    if (value == null || value.equalsIgnoreCase("null")) {
      return "";
    } else {

      return value;
    }
  }

  /**
   * @param value The value
   */
  public void setValue(String value) {
    this.value = value;
  }

  public Map<String, Object> getAdditionalProperties() {
    return this.additionalProperties;
  }

  public void setAdditionalProperty(String name, Object value) {
    this.additionalProperties.put(name, value);
  }
}
